package com.ruoyi.project.medicinal.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.framework.web.domain.BaseEntity;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotBlank;
import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class StockProducter extends BaseEntity {
    private static final long serialVersionUID = 1L;

    private Long producterId;//厂家ID
    @NotBlank(message = "厂家名称不能为空")
    private String producterName;//厂家名称
    private String producterCode;//厂家编码
    private String producterAddress;//厂家地址
    private String producterPerson;//联系人
    private String producterTel;//厂家电话
    private String keywords;//关键字
    private String status;//状态(0正常,1停用)
    @DateTimeFormat(pattern = "yyyy-MM-dd hh:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd hh:mm:ss")
    private Date createTime;//创建时间
    @DateTimeFormat(pattern = "yyyy-MM-dd hh:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd hh:mm:ss")
    private Date updateTime;//更新时间
    private String createBy;//创建人
    private String updateBy;//更新人

}
